import request from '@/utils/request'

export const getPermissions = () => {
  return request.get('/api/admin/permissions')
}

export const updatePermission = (role, type, value) => {
  return request.post('/api/admin/permissions/update', {
    role,
    type,
    value
  })
}

export const initializePermissions = () => {
  return request.post('/api/admin/permissions/initialize')
}
